package com.lis.scf.repository;

import com.lis.scf.entity.EnterpriseRegistration;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.Optional;

/**
 * 企业注册流程表数据访问接口
 */
public interface EnterpriseRegistrationRepository extends JpaRepository<EnterpriseRegistration, Long> {

    /**
     * 查询企业最新的注册状态记录
     */
    Optional<EnterpriseRegistration> findTopByCompanyCompanyIdOrderByStepCompleteTimeDesc(Long companyId);
}
